package com.teamall.web.sjtj.db.dao.mapper;

import com.teamall.web.sjtj.db.arg.CodeVisitedAidRankArg;
import com.teamall.web.sjtj.db.po.CodeVisitedAidRankPO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface ICodeVisitedAidRankMapper {
    
    List<Integer> countByArg(CodeVisitedAidRankArg arg);

    List<CodeVisitedAidRankPO> selectByArg(CodeVisitedAidRankArg arg);

    CodeVisitedAidRankPO selectByPrimaryKey(String id);

    List<CodeVisitedAidRankPO> selectByArgAndPage(CodeVisitedAidRankArg arg, RowBounds rowBound);

    int insert(CodeVisitedAidRankPO record);

    int insertSelective(CodeVisitedAidRankPO record);

    int insertBatch(@Param("list") List<CodeVisitedAidRankPO> records);

    int updateByArgSelective(@Param("record") CodeVisitedAidRankPO record,
            @Param("arg") CodeVisitedAidRankArg arg);

    int updateByArg(@Param("record") CodeVisitedAidRankPO record,
            @Param("arg") CodeVisitedAidRankArg arg);

    int updateByPrimaryKeySelective(CodeVisitedAidRankPO record);

    int updateByPrimaryKey(CodeVisitedAidRankPO record);
    
    int deleteByArg(CodeVisitedAidRankArg arg);
    
    int deleteByPrimaryKey(String id);
    
}